package com.chushouya.manager.dto.admin.im;

import com.general.framework.core.enums.IEnum;

/**
 * websocket客户端连接ID前缀(终端名称-角色-用户ID)
 */
public enum ClientIdPrefix implements IEnum<String> {

    platformAdmin(   "platform-admin-", "平台-管理用户"),

    platformMerchant(   "platform-merchant-", "平台-管理用户"),

    appUser(   "app-user-", "客户端-普通用户"),

    appStore(   "app-store-", "客户端-门店"),

    appMerchant(   "app-merchant-", "客户端-回收商");

    private String value;

    private String name;

    ClientIdPrefix(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String value() {
        return value;
    }

    @Override
    public String named() {
        return name;
    }
}
